package redis

import "time"

func SendCode(mobile, source, code string) {
	key := "send" + source + mobile
	Client.Set(key, code, time.Minute*5)
}

func GetCode(mobile, source string) {
	key := "send" + source + mobile
	Client.Get(key).Val()
}

func DelCode(mobile, source, code string) {
	key := "send" + source + mobile
	Client.Del(key, code)
}
